package com.xsr.service.impl;

import com.xsr.mapper.UserMapper;
import com.xsr.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * @author 邢式瑞
 * @version 1.0
 * @project springMvcday03
 * @date 2022/9/14 17:48
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public List findPerms(int id) {
        return userMapper.selectPrem(id);
    }

    @Override
    public List<String> findRoles(int id) {
        return  userMapper.selectRoles(id);
    }

    @Override
    public List<String> selectAll() {
        return userMapper.selectAll();
    }
}
